package org.codert.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: TanJingyu
 * @create: 2021-09-21 22:32
 **/
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @GetMapping
    public String list(@RequestParam(value = "username") String username) throws InterruptedException {
        System.out.println(username);
        TimeUnit.SECONDS.sleep(7);
        return "success";
    }
}
